home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 8 / FM Towns Free Software Collection 8.iso / t_os / gpen32k / source / lib / osrc / osymbol.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-01  |  594 b   |  24 lines

  1. /************************************************************
  2. *   共通一般ライブラリー                OKOME System 2      *
  3. ************************************************************/
  4.  
  5. #include    <string.h>
  6. #include    <EGB.H>
  7. #include    <normlib.h>
  8.  
  9. extern char work[];
  10.  
  11. void symbol(int x, int y, char *p, int k, int c)
  12. {
  13.     char pa[256];
  14.     EGB_paintMode(work, 0x22);
  15.     EGB_color( work, 0, c);
  16.     EGB_textZoom( work, 0, k/2, k);
  17.     EGB_textZoom( work, 1, k, k);
  18.     WORD(pa    ) = x;
  19.     WORD(pa + 2) = y;
  20.     WORD(pa + 4) = strlen(p);
  21.     strcpy( &(pa[6]), p );
  22.     EGB_sjisString( work, pa );
  23. }
  24.